<template>
	<view class="">
		<uni-popup ref="popup" type="bottom" maskClick>
			<uni-card>
				<view class="submit" @click="gosubmit">
					上报困人
				</view>
				<view class="fault" @change="gofault">
					上报故障
				</view>
			</uni-card>
			<uni-card>
				<view class="cancel" @close="close">
					取消
				</view>
			</uni-card>
		</uni-popup>
	</view>
	
</template>

<script>
	import uniPopup from '@/components/uni-popup/uni-popup.vue'
	export default {
		components: {
			uniPopup,
		},
		props: ["select"],
		data() {
			return {
				list: []
			}
		},
		methods: {
			close(){},
			// 上报困人 跳转
			gosubmit(){
				uni.navigateTo({
					url:"../pages/tabbar/polling/submit/submit"
				})
			},
			gofault(){
				uni.navigateTo({
					url:"../pages/tabbar/polling/fault/fault"
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.uni-card:nth-child(1){
		width: 670rpx;
		height: 208rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 10rpx 10rpx 0rpx rgba(52, 54, 61, 0.05);
		border-radius: 16rpx;
		margin: 0 auto;
		view{
			text-align: center;
			line-height: 80rpx;
			// height: 29rpx;
			font-size: 30rpx;
			font-family: PingFang SC;
			font-weight: 400;
			color: #017EFE;
		}
	}
	.submit{
		border-bottom: 1px solid #E2E6EF;
	}
	.uni-card:nth-child(2){
		width: 670rpx;
		height: 104rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 10rpx 10rpx 0rpx rgba(52, 54, 61, 0.05);
		border-radius: 16rpx;
		margin: 0 auto;
		margin-top: 20rpx;
		margin-bottom: 20rpx;
		view{
			text-align: center;
			line-height: 75rpx;
			// height: 29rpx;
			font-size: 30rpx;
			font-family: PingFang SC;
			font-weight: 400;
			color: #34363D;
		}
	}
</style>
